<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>관리자 페이지</title>
<link href="../style.css" rel="stylesheet" type="text/css">

<script language="javascript">
function search_clr() {
	document.frm.searchKeyword.style.background = "";
}
</script>
</head>


<body>



<table width="860" border="0" cellspacing="0" cellpadding="0">
	<tr><td colspan="7" class="f15_indigo">회원 목록</td></tr>
	<tr>
		<td height="37" align="right" colspan="7" valign="middle" >
			<form method="post">
				<%-- <select style="background:#F2F2F2; color:#F3683D;" name="searchNum"> --%>
				<select name="searchNum">
					<option value="0">아이디</option>
					<option value="1">이름</option>
					<option value="2">휴대전화</option>
				</select>
				<!-- <input type="text" name="searchKeyword" style="background:url(./icon/btn_modify_on.png); background-repeat:no-repeat;" nclick="search_clr()"> -->
				<input type="text" name="searchKeyword">
				<input type="submit" value="검색">
			</form>
		</td>
	</tr>
	<tr><td width="860" colspan="7"><img src="./icon/bg_g.jpg" border="0" width="860" height="1"></td></tr>
	<tr align="center">
		<td width="50" height="30" valign="middle" class="body_grey"><strong>번호</strong></td>
		<td width="120" height="30" valign="middle"class="body_grey"><strong>아이디</strong></td>
		<td width="120" height="30" valign="middle"class="body_grey"><strong>이름</strong></td>
		<td width="120" height="30" valign="middle"class="body_grey"><strong>주민등록번호</strong></td>
		<td width="120" height="30" valign="middle"class="body_grey"><strong>휴대전화</strong></td>
		<td width="200" height="30" valign="middle"class="body_grey"><strong>이메일</strong></td>
		<td width="130" height="20" valign="middle" class="body_grey"><strong>회원관리</strong></td>
	</tr>
	<tr><td width="860" colspan="7"><img src="./icon/bg_g.jpg" border="0" width="860" height="1"></td></tr>

	<s:iterator value="list" status="stat">

		<s:url id="viewURL" action="memberView">
			<s:param name="memberno">
				<s:property value="memberno" />
			</s:param>
			<s:param name="currentPage">
				<s:property value="currentPage" />
			</s:param>
		</s:url>

		<tr align="center">
			<td width="50" height="25" align="center"><s:property value="memberno" /></td>
			<td width="120" height="25" align="center"><s:a href="%{viewURL}">
					<strong><s:property value="id" /></strong></s:a></td>
			<td width="120" height="25" align="center"><s:property value="name" /></td>
			<td width="120" height="25" align="center"><s:property value="jumin1" /> - <s:property value="jumin2" /></td>
			<td width="120" height="25" align="center"><s:property value="cellphone" /></td>
			<td width="200" height="25" align="center"><s:property value="email" /></td>
			<td width="130" height="25" valign="bottom">
				<p align="center">
				<a href="memberResult.action?memberno=<s:property value="memberno" />&currentPage=<s:property value="currentPage" />">
					<img src="./icon/btn_modify_off.png" border="0" />
				</a>
				&nbsp;&nbsp;
				<a href="memberDelete.action?memberno=<s:property value="memberno" />&currentPage=<s:property value="currentPage" />">
					<img src="./icon/btn_delete_on.png" border="0" />
				</a>
				</p>
			</td>
		</tr>
		<tr><td width="860" colspan="7"><img src="./icon/bg_g.jpg" border="0" width="860" height="1"></td></tr>

	</s:iterator>

	<s:if test="list.size() le 0">

		<tr bgcolor="#FFFFFF" align="center">
			<td colspan="7">등록된 게시물이 없습니다.</td>
		</tr>

		<tr bgcolor="#777777">
			<td height="1" colspan="7"></td>
		</tr>

	</s:if>

	<tr><td colspan="7">&nbsp;</td></tr>
	<tr align="center">
		<td colspan="7"><s:property value="pagingHtml" escape="false" /></td>
	</tr>
		
</table>
</body>

</html>